package com.example.mybank.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mybank.entity.Schedule;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface ScheduleMapper extends BaseMapper<Schedule> {

    @Update("DELETE FROM schedule where users=#{usersID} and product=#{ProductID}")
    int deleteByUserProduct(Long usersID,Long ProductID);
}
